﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class NguoiDungBUS
    {
        public static NguoiDungDTO LayNguoiDung(string tenNguoiDung)
        {
            return NguoiDungDAO.LayNguoiDung(tenNguoiDung);
        }

        public static List<NguoiDungDTO> LayDanhSach()
        {
            return NguoiDungDAO.LayDanhSach();
        }

        public static int ThemNguoiDung(NguoiDungDTO nguoiDungDto)
        {
            return NguoiDungDAO.ThemNguoiDung((nguoiDungDto));
        }

        public static int XoaNguoiDung(string tenNguoiDung)
        {
            return NguoiDungDAO.XoaNguoiDung(tenNguoiDung);
        }

        public static int SuaNguoiDung(NguoiDungDTO nguoiDungDto)
        {
            return NguoiDungDAO.SuaNguoiDung(nguoiDungDto);
        }
    }

}
